<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo('charset'); ?>">
	<meta name="viewport" content="width=device-width">
	
	<?php if ( is_home() ) { ?>
		<title><?php bloginfo('name'); ?>-<?php bloginfo('description'); ?></title>
	<?php } ?>
	<?php if ( is_search() ) { ?>
		<title><?php bloginfo('name'); ?> - <?php the_search_query(); ?> 的搜索结果</title>
	<?php } ?>
	<?php if ( is_single() ) { ?>
		<title><?php bloginfo('name'); ?> - <?php echo trim(wp_title('',0)); ?></title>
	<?php } ?>
	<?php if ( is_page() ) { ?>
		<title><?php bloginfo('name'); ?> - <?php echo trim(wp_title('',0)); ?></title>
	<?php } ?>
	<?php if ( is_category() ) { ?>
		<title><?php bloginfo('name'); ?> - <?php single_cat_title(); ?></title>
	<?php } ?>
	<?php if ( is_month() ) { ?>
		<title><?php bloginfo('name'); ?> - <?php the_time('F'); ?></title>
	<?php } ?>
	<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?>
		<title><?php bloginfo('name'); ?> - <?php single_tag_title("", true); ?></title>
	<?php } }?> 
	<link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('template_directory'); ?>/img/favicon.ico" />
	<?php wp_head(); ?>
</head>
<body <?php body_class();?> >
	<div class="container">
		<header class="site-header">
			<div class="maxwidth">
				<div class="hd-search">
				<?php get_search_form(); ?>
				</div>

				<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
				<h5><?php bloginfo('description'); ?></h5>
				<nav class="site-nav">
					<?php	
					$args = array(
						'theme_location' => 'primary'
					);
					?>
					<?php  wp_nav_menu( $args );?>
				</nav>
			</div>
			
		</header>